<!DOCTYPE html>
<html ng-app="app" lang="en">

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/wui.min.css">
		<link rel="stylesheet" type="text/css" href="../css/style.css">
		<link rel="stylesheet"  type="text/css" href="../css/feather.css">
		<link rel="stylesheet"  type="text/css" href="../css/app-light.css">
		<link rel="stylesheet"  type="text/css" href="../css/employee.css"/>
		<script src="../js2/jquery.min.js"></script>
		<script type="text/javascript" src="../js2/angular.min.js"></script>
		<script type="text/javascript" src="../js2/wui-date.js" charset="utf-8"></script>
	</head>

	<body class="vertical light">
	<script src="../js/jquery.min.js" type="text/javascript"  charset="utf-8"></script>
	<script src="../js/bootstrap.min.js" type="text/javascript"  charset="utf-8"></script>
	<script src="../js/allset.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
	loadmobangly();
	</script>
	<main role="main" class="main-content" >
		<div class="container-fluid" style="margin-bottom: 300px;">
			<div id="titletop" >
				<label>档案编号</label>
				<div id="emid">text1</div>
			</div>
			 <input type="file" id="file" name="myfile" style="display: none;" />
			 <button id="mysubmit" type="submit" style="display: none;"></button>
		<!--mymainbox开始-->
			<div class="mymainbox">
				<div id="mybox1">
					<div id="mybox1-1" class="box1">
						<label>一级机构</label><br />
						<input type="text" name="onein" id="onein" class="input1" disabled="disabled"/>
					</div>
					<div id="mybox1-2" class="box1">
						<label>二级机构</label><br />
						<input type="text" name="towin" id="towin" class="input1" disabled="disabled"/>
					</div>
					<div id="mybox1-3" class="box1">
						<label>三级机构</label><br />
						<input type="text" name="thirdin" id="thirdin" class="input1" disabled="disabled"/>
					</div>
					<div id="mybox1-4" class="box1">
						<label>职位分类</label><br />
						<input type="text" name="position1" id="position1" class="input1" disabled="disabled"/>
					</div>
					<div id="mybox1-5" class="box1">
						<label>职位名称</label><br />
						<input type="text" name="position2" id="position2" class="input1" disabled="disabled"/>
					</div>
					<div id="mybox1-6" class="box1">
						<label>职位</label><br />
						<input type="text" name="position3" id="position3" class="input1" disabled="disabled"/>
					</div>
				</div>
				<div id="mybox2">
					<div id="mybox2-1" class="mybox2">
						<label>员工照片</label>
						<div id="img" onclick="fileclick()">
							<img id="ygtx" />
						</div>
					</div>
					<div id="mybox2-2" class="mybox2">
						<div class="box2">
							<label>姓名</label><br />
							<input type="text" name="name" id="name" class="input1"/>
						</div>
						<div class="box2">
							<label>性别</label><br />
							<select id="sex" class="myselect" >
								<option style="display: none;"></option>
								<option value="男">男</option>
								<option value="女">女</option>
							</select>
						</div>
						<div class="box1">
							<label>邮箱</label><br />
							<input type="text" name="yx" id="yx" class="input1"/>
						</div>
						<div class="box1">
							<label>电话</label><br />
							<input type="text" name="dh" id="dh" class="input1"/>
						</div>
						<div class="box1">
							<label>手机</label><br />
							<input type="text" name="sj" id="sj" class="input1"/>
						</div>
						<div class="box1">
							<label>QQ</label><br />
							<input type="text" name="QQ" id="QQ" class="input1"/>
						</div>
						<div class="box3">
							<label>住址</label><br />
							<input type="text" name="place" id="place" class="input1"/>
						</div>
						<div class="box1">
							<label>出生地</label><br />
							<input type="text" name="bplace" id="bplace" class="input1"/>
						</div>
						<div class="box1">
							<label>邮编</label><br />
							<input type="text" name="yb" id="yb" class="input1"/>
						</div>
					</div>
					
				</div>
				<div  class="mybox3">
					<div class="box4">
						<label>身份证</label><br />
						<input type="text" name="sfz" id="sfz" class="input1"/>
					</div>
					<div class="box4">
						<label>社会保障号码</label><br />
						<input type="text" name="shbzhm" id="shbzhm" class="input1"/>
					</div>
					<div class="box1">
						<label>生日</label><br />
						<div class="wui-area">
							<wui-date 
								format="yyyy-mm-dd" 
								placeholder="请选择或输入日期" 
								id="sr" 
								btns="{'ok':'确定','now':'此刻'}" 
								ng-model="sr"
							>
							</wui-date>
						</div>
					</div>
					<div class="box1">
						<label>年龄</label><br />
						<input type="text" name="nl" id="nl" class="input1"/>
					</div>
				</div>
				<div class="mybox4">
					<div class="box1">
						<label>国籍</label><br />
						<input type="text" name="gj" id="gj" class="input1"/>
					</div>
					<div class="box1">
						<label>民族</label><br />
						<select id="mz" class="myselect" >
							<option style="display: none;"></option>
							<option value="汉族">汉族</option>
							<option value="满族">满族</option>
						</select>
					</div>
					<div class="box1">
						<label>宗教信仰</label><br />
						<input type="text" name="zjxy" id="zjxy" class="input1"/>
					</div>
					<div class="box1">
						<label>政治面貌</label><br />
						<input type="text" name="zzmm" id="zzmm" class="input1"/>
					</div>
					<div class="box1">
						<label>学历</label><br />
						<select id="xl" class="myselect" >
							<option style="display: none;"></option>
							<option value="小学">小学</option>
							<option value="初中">初中</option>
							<option value="高中">高中</option>
							<option value="专科">专科</option>							
							<option value="本科">本科</option>
							<option value="硕士">硕士</option>
							<option value="博士">博士</option>
							<option value="博士后">博士后</option>
						</select>
					</div>
					<div  class="box1">
						<label>学历专业</label><br />
						<select id="xlzy" class="myselect" >
							<option style="display: none;"></option>
							<option value="计算机">计算机</option>
							<option value="土木">土木</option>
						</select>
					</div>
				</div>
				<div class="mybox5">
					<div  class="box1">
						<label>特长</label><br />
						<select id="tc" class="myselect" >
							<option style="display: none;"></option>
							<option value="写代码">写代码</option>
							<option value="数学">数学</option>
						</select>
					</div>
					<div  class="box1">
						<label>爱好</label><br />
						<select id="ah" class="myselect" >
							<option style="display: none;"></option>
							<option value="打篮球">打篮球</option>
							<option value="唱歌">唱歌</option>
						</select>
					</div>
					<div  class="box4">
						<label>薪资标准</label><br />
						<select id="xzbz" class="myselect" >
							<option style="display: none;"></option>
							<option value="1">测试1</option>
							<option value="2">测试2</option>
						</select>
					</div>
					<div  class="box4">
						<label>开户行</label><br />
						<select id="khh" class="myselect" >
							<option style="display: none;"></option>
							<option value="建设银行">建设银行</option>
							<option value="农业银行">农业银行</option>
						</select>
					</div>
				</div>
				<div class="mybox6">
					<div class="box3">
						<label>账号</label><br />
						<input type="text" name="yhkzh" id="yhkzh" class="input1"/>
					</div>
				</div>
				<div class="mybox7">
					<div class="box5">
						<label>个人履历</label><br />
						<div contenteditable="true" id="grll">
						</div>
					</div>
					<div class="box5">
						<label>家庭关系</label><br />
						<div contenteditable="true" id="homegx">
						</div>
					</div>
				</div>
				<div class="mybox8">
					<div class="box5">
						<label>备注</label><br />
							<input type="text" name="bz" id="bz" class="input1"/>
					</div>
					<div class="box6" style="transform: translate(70px);">
						<label>登记日期</label><br />
						<div class="wui-area" disabled="disabled">
							<wui-date 
								format="yyyy-mm-dd" 
								placeholder="请选择或输入日期" 
								id="djrq" 
								btns="{'ok':'确定','now':'此刻'}" 
								ng-model="date1"
							>
							</wui-date>
						</div>
					</div>
					<div class="box6">
						<label>登记人</label><br />
							<input type="text" name="djr" id="djr" class="input1" disabled="disabled"/>
					</div>
				</div>
				<button type="button" class="btn btn-primary" style="transform: translateX(600px);margin-top: 30px;" onclick="tjclick('/employee/update')">同意</button>
				<button type="button" class="btn btn-danger" style="transform: translateX(400px);margin-top: 30px;" onclick="bohui()">驳回</button>
			</div>
		<!--mymainbox结束-->
		</div>
	</main> 
			<input type="text" name="djr" id="ycipnut1" style="display: none;"/>
			<input type="text" name="djr" id="ycipnut2" style="display: none;"/>
			<input type="text" name="djr" id="ycipnut3" style="display: none;"/>
			<input type="text" name="djr" id="ycipnut4" style="display: none;"/>
			<input type="text" name="djr" id="ycipnut5" style="display: none;"/>
			<input type="text" name="djr" id="ycipnut6" style="display: none;"/>
</div>
<script src="../js/fhem.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/employee.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			let app = angular.module('app',["wui.date"]);
			setin4('0','xzbz','/salary/findBysStatus')
			$('#mysubmit').click(function () {
	        // 1.先生成一个formdata对象
	        let myFormData = new FormData();

	        myFormData.append('myfile',$('#file')[0].files[0]);
	        $.ajax({
	            url:'/employee/updateEmployeeImg',
	            type:'post',
	            data:myFormData,  // 直接丢对象
	            // ajax传文件 一定要指定两个关键性的参数
	            contentType:false,  // 不用任何编码 因为formdata对象自带编码 django能够识别该对象
	            processData:false,  // 告诉浏览器不要处理我的数据 直接发就行
	            success:function (data) {
	                let img=document.getElementById('ygtx');
	                img.src=data.data;
	            }
	        })
	    })			
	    setTimeout("fhonload()",1000);
		fuheload2();
		</script>
	</body>
</html>